package com.example.demotest;

import com.example.demotest.controller.LogReader;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import java.io.File;

@SpringBootApplication
public class DemoTestApplication {

    public static void main(String[] args) {
        SpringApplication.run(DemoTestApplication.class, args);
        File logFile = new File("C:\\Users\\chenjie\\IdeaProjects1\\demo-test\\src\\main\\resources\\wdad.txt");
        Thread rthread = new Thread(new LogReader(logFile));
        rthread.start();
    }

}
